-- GENERATED SPELL FOR [Axtroz] --


function spell0_12899(pUnit, Event) --@Flame Breath,Self--
pUnit:FullCastSpellOnTarget(20712,pUnit)
pUnit:RegisterEvent('Sorts_12899', 588, 1)
end

function spell1_12899(pUnit, Event) --@Vicious Rend,n/a--
pUnit:FullCastSpellOnTarget(16095,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12899', 15000, 1)
end

function Sorts_12899(pUnit, Event)
local choix_sorts_12899 = math.random(0, 1)
if choix_sorts_12899 == 0 then
pUnit:RegisterEvent('spell0_12899', 1, 1)
end
if choix_sorts_12899 == 1 then
pUnit:RegisterEvent('spell1_12899', 1, 1)
end
end

function mob12899_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12899', math.random(1500, 3000), 1)
end

function mob12899_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12899_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12899_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12899, 1, 'mob12899_Action')
RegisterUnitEvent(12899, 2, 'mob12899_Leave')
RegisterUnitEvent(12899, 3, 'mob12899_Kill')
RegisterUnitEvent(12899, 4, 'mob12899_Die')
